package com.jy.datapipeline.export.dao;

import com.jy.datapipeline.export.entity.ExpTaskModel;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface ExpTaskDao {
    public List<Map<String,Object>> findExpTaskByList(String taskName, String taskType,
                                                      int iDisplayStart, int iDisplayLength, String storeId, String ruleId, String status, String dataSourceId, String latestStatus);

    public int findExpTaskByCount(String taskName, String taskType, String storeId, String ruleId, String status, String dataSourceId, String latestStatus);

    public boolean updateExpTask(ExpTaskModel etm);

    public boolean deleteExpTask(String taskId);

    public  boolean updateExpTaskStatus(int status,String taskId,String netExecuTime);

    public List<Map<String,Object>> findExecuTask();

    Set<Integer> batchSaveExpTask(List<ExpTaskModel> expTaskModelList);

    void batchDeleteExpTask(Set<Long> ids);

    Set<String> findTaskIds(Set<Long> ids);
}
